package com.eber.demo.design.state.c;

public class StoppingState extends LiftStateAbstract{
    @Override
    public void close() {
        // do nothing
    }

    // 打开电梯门
    @Override
    public void open() {
        super.context.setLiftState(new OpeningState());
        super.context.getLiftState().open();
    }

    @Override
    public void run() {
        super.context.setLiftState(new RunningState());
        super.context.getLiftState().run();
    }

    @Override
    public void stop() {
        System.out.println("电梯停止了...");
    }
}
